<?php
$poll = $this->poll;
?>


<div class="content-box">

    <div class="content-box-header">
        <h3>Add poll</h3>
        <ul class="content-box-tabs">
            <li><a class="default-tab" href="#tab1">Form</a></li>
        </ul>
        <div class="clear"></div>
    </div>
    <div class="content-box-content">
        <div class="tab-content default-tab" id="tab1">

            <form id="form1" method="post">
                <p>Question:</p>
                <input style="width:500px" id="question" name="question"/>
                <br>
                <input type="checkbox" id="isactive" name="isactive" checked="checked" value="1"/> Active
                <br>

                <p>

                <p>Answers:</p>
                <span>1.</span><input style="width:400px" id="answer_1" name="answer[]"/><br>
                <span>2.</span><input style="width:400px" id="answer_2" name="answer[]"/>
                <input id="add_answer" type="button" value="Add answer" class="btn"/>
                <br>
                <input id="add" type="submit" value="Add" class="btn btn-primary"/>
            </form>
            <div id="question1">


            </div>
        </div>
    </div>
</div>

    <script type="text/javascript">
        $().ready(function() {
           initAddAnswerButton();
            initDelAnswerButton();
        });
    </script>


